package cn.com.cabinet.util;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;

public abstract class PageUtil {
	
	
	
	public void page(HttpServletResponse res,int total,Object object) throws IOException{
		
		PrintWriter pw = res.getWriter(); 
		String sellRecordJson = JsonUtil.parseJson(object);
		String json = "{\"total\":" + total + ",\"rows\":" + sellRecordJson
				+ "}";
		System.out.println(json);
		pw.print(json);
	}
	

}
